package com.model;

import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 * VClassInfoId entity. @author MyEclipse Persistence Tools
 */

public class VClassInfoId implements java.io.Serializable {

	// Fields

	private String classId;
	private String className;
	private String gradeName;
	private String majorName;
	private String collegeName;
	private Boolean isEnable;

	// Constructors

	/** default constructor */
	public VClassInfoId() {
	}

	/** minimal constructor */
	public VClassInfoId(String classId) {
		this.classId = classId;
	}

	/** full constructor */
	public VClassInfoId(String classId, String className, String gradeName, String majorName, String collegeName, Boolean isEnable) {
		this.classId = classId;
		this.className = className;
		this.gradeName = gradeName;
		this.majorName = majorName;
		this.collegeName = collegeName;
		this.isEnable = isEnable;
	}

	// Property accessors

	@Column(name = "classID", nullable = false)
	public String getClassId() {
		return this.classId;
	}

	public void setClassId(String classId) {
		this.classId = classId;
	}

	@Column(name = "className")
	public String getClassName() {
		return this.className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	@Column(name = "gradeName")
	public String getGradeName() {
		return this.gradeName;
	}

	public void setGradeName(String gradeName) {
		this.gradeName = gradeName;
	}

	@Column(name = "majorName")
	public String getMajorName() {
		return this.majorName;
	}

	public void setMajorName(String majorName) {
		this.majorName = majorName;
	}

	@Column(name = "collegeName")
	public String getCollegeName() {
		return this.collegeName;
	}

	public void setCollegeName(String collegeName) {
		this.collegeName = collegeName;
	}

	@Column(name = "isEnable")
	public Boolean getIsEnable() {
		return this.isEnable;
	}

	public void setIsEnable(Boolean isEnable) {
		this.isEnable = isEnable;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof VClassInfoId))
			return false;
		VClassInfoId castOther = (VClassInfoId) other;

		return ((this.getClassId() == castOther.getClassId()) || (this.getClassId() != null && castOther.getClassId() != null && this.getClassId().equals(castOther.getClassId()))) && ((this.getClassName() == castOther.getClassName()) || (this.getClassName() != null && castOther.getClassName() != null && this.getClassName().equals(castOther.getClassName()))) && ((this.getGradeName() == castOther.getGradeName()) || (this.getGradeName() != null && castOther.getGradeName() != null && this.getGradeName().equals(castOther.getGradeName()))) && ((this.getMajorName() == castOther.getMajorName()) || (this.getMajorName() != null && castOther.getMajorName() != null && this.getMajorName().equals(castOther.getMajorName()))) && ((this.getCollegeName() == castOther.getCollegeName()) || (this.getCollegeName() != null && castOther.getCollegeName() != null && this.getCollegeName().equals(castOther.getCollegeName()))) && ((this.getIsEnable() == castOther.getIsEnable()) || (this.getIsEnable() != null && castOther.getIsEnable() != null && this.getIsEnable().equals(castOther.getIsEnable())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getClassId() == null ? 0 : this.getClassId().hashCode());
		result = 37 * result + (getClassName() == null ? 0 : this.getClassName().hashCode());
		result = 37 * result + (getGradeName() == null ? 0 : this.getGradeName().hashCode());
		result = 37 * result + (getMajorName() == null ? 0 : this.getMajorName().hashCode());
		result = 37 * result + (getCollegeName() == null ? 0 : this.getCollegeName().hashCode());
		result = 37 * result + (getIsEnable() == null ? 0 : this.getIsEnable().hashCode());
		return result;
	}

}